{extend name="admin/b2c/base" /}
{block name="resources"}
<script src="ADMIN_JS/art_dialog.source.js" type="text/javascript"></script>
<script src="__STATIC__/js/check_browser.js" type="text/javascript"></script>
<script src="__STATIC__/js/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
<script src="ADMIN_JS/linkUrlJs.js" type="text/javascript"></script>
<script src="__STATIC__/js/application.js"></script>
<script src="__STATIC__/js/prettify.js"></script>
<script src="__STATIC__/bootstrap/js/bootstrapCommon.js"></script>
<script src="ADMIN_JS/jquery.pager.js"></script>
<script src="ADMIN_JS/allselect.js" type="text/javascript"></script>
<link href="ADMIN_CSS/defau.css" rel="stylesheet" type="text/css">
<link href="ADMIN_CSS/member.css" rel="stylesheet" type="text/css">
<link href="ADMIN_CSS/base.css" rel="stylesheet" type="text/css">
<link href="ADMIN_CSS/dashbord.css" rel="stylesheet" type="text/css">
<link href="ADMIN_CSS/guid.css" rel="stylesheet" type="text/css">
<link href="ADMIN_CSS/mcm.css" rel="stylesheet" type="text/css">
<link href="ADMIN_CSS/module.css" rel="stylesheet" type="text/css">
<link href="ADMIN_CSS/product.css" rel="stylesheet" type="text/css">
<!-- <link href="ADMIN_CSS/system.css" rel="stylesheet" type="text/css"> -->
<link href="ADMIN_CSS/wechat.css" rel="stylesheet" type="text/css">
<link href="__STATIC__/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css"/>
<link href="ADMIN_CSS/default1.css" rel="stylesheet" type="text/css">
<style>
body .mod-tab .style0big .current, .mod-tab .style0big .current:hover{border-top:2px solid #27A9E3;}
body .mod-tab .style0big .current, .mod-tab .style0big .current{border-top:2px solid #27A9E3;}
.tabmenu_hr{height:0;}
</style>
{/block}
{block name="right_tab"}
<li><a class="nscs-table-handle_green" href="ADMIN_MAIN/Express/TransportationAdd" >添加模板</a></li>
{/block}
{block name="main"}
<div class="mod-table" style="margin-top:40px;">
	<div style="border-top: 1px #D7D7D7 solid;"></div>
	<div class="mod-table-main" style="min-height: 400px;">
		<div style="border-left: 1px #D7D7D7 solid; border-right: 1px #D7D7D7 solid;" class="con style0line">
			<table cellspacing="0" cellpadding="0" border="0" width="100%">
				<colgroup>
					<col style="width: 2%;">
					<col style="width: 15%;">
					<col style="width: 25%;">
					<col style="width: 15%;">
					<col style="width: 15%;">
					<col style="width: 14%;">
					<col style="width: 14%;">
				</colgroup>
				<tbody></tbody>
			</table>
		</div>
	</div>
</div>
{include file="admin/b2c/openDialog" /}
<script type="text/javascript">
$(function () {
	LoadingInfo();
});

function TransportationDelete(shipping_fee_id, event) {
	$( "#dialog" ).dialog({
		buttons: {
			"确定": function() {
				$(this).dialog('close');
				$.ajax({
					type:"post",
					url:"ADMIN_MAIN/Express/TransportationDelete",
					data:{
						'shipping_fee_id':shipping_fee_id
					},
					dataType : "json",
					success:function (data) {
						if (data["code"] > 0) {
							LoadingInfo();
							$( "#dialog" ).dialog({
								buttons: {
									"确定": function() {
										$(this).dialog('close');
									}
								},
								contentText:"运费模板删除成功",
								time:3,
								timeHref:'ADMIN_MAIN/Express/Transportation',
							});
						}else{
							$( "#dialog" ).dialog({
								buttons: {
									"确定": function() {
										$(this).dialog('close');
									}
								},
								contentText:"运费模板删除失败",
							});
						}
					}
				});
			},
			"取消,#e57373":function(){
				$(this).dialog('close');
			}
		},
		contentText:"您确定要删除？",
	});
}
function LoadingInfo(){
	$.ajax({
		url: 'ADMIN_MAIN/Express/Transportation',
		type: 'POST',
		dataType: 'html',
		data: {pageindex:'1'},
		success: function(data) {
			$('.style0line table tbody').empty();
			$('.style0line table tbody').append(data);
		}
	});
}
</script>
{/block}